package www.tshu.service;

import www.tshu.pojo.Book;
import www.tshu.pojo.PI;
import www.tshu.pojo.Typee;
import www.tshu.pojo.UB;
import www.tshu.util.PageUtil;

import java.util.List;

public interface BookService {
    int getBookListCount(Book book);

    List<Book> bookList(Book book,PageUtil pageUtil);

    Double getMoneyById(PI pi);

    int borrowBook(UB ub,PI pi1);

    int getBnumberById(String bid);

    int addMoneyById(PI pi1);

    List<UB> borrowListById(String unum ,PageUtil pageUtil);

    int ruternBook(UB ub);

    List<Typee> getTypeList();

    List<UB> borrowList(PageUtil pageUtil);

    int getBorrowListCount();

    int deleteBorrow(String ubid);

    int getBooksListCount(Book book);

    List<Book> booksList(Book book, PageUtil pageUtil);

    int getBorrowListCountById(String unum);

    int editState(String bid);

    int deleteBook(String bid);

    int selectBorrow(String bid);

    int addBook(Book book);

    List<Book> selectBook(String bid);

    int editBook(Book book);
}
